<template>
  <div>
    父组件：{{doc.title}}
    <text-document :title.sync="doc.title" />
  </div>
</template>

<script>
import TextDocument from "./TextDocument";

export default {
  components: { TextDocument },
  data() {
    return {
      doc: {
        title: "标题"
      }
    };
  }
};
</script>